package com.termux.view;
import com.jsdroid.editor.widget.FileTabView;
import java.io.File;
import com.jsdroid.editor.parser.Colors;
import android.view.View;

public class CustomTab extends FileTabView.FileTab {
	private File file;

	public CustomTab(File file) {
		super(file);
		this.file = file;
	}

	public File getFile() {
		return file;
	}

	@Override
	public int getDefaultColor() {
		return Colors.tabDefaultColor;
	}

	@Override
	public int getSelectColor() {
		return Colors.tabSelectColor;
	}

	@Override
	public int getDefaultTextColor() {

		return Colors.tabDefaultTextColor;
	}

	@Override
	public int getSelectTextColor() {
		return Colors.tabSelectTextColor;
	}

	@Override
	public int getImage() {
		return -1;
	}

	@Override
	public String getText() {
		return file.getName();
	}

	@Override
	public void save() {

	}

	@Override
	public void onSelected(FileTabView fileTabView) {
		
	}

	@Override
	public void onClosed(FileTabView fileTabView) {
		
	}

	public View getContentView() {
		return null;
	}
}

